package pers.lls.im.core.common.bean;

import org.springframework.stereotype.Component;

/**
 * 初始化配置
 *
 * @author lihuan
 * @version V1.0 创建时间：2019/8/02
 * Copyright 2019 by landray & STIC
 */
@Component
public class InitNetty {

    /**
     * 通信地址
     */
    public static final int WEB_PORT = 17999;

    public static String address;

    public static final int BOSS_THREAD = 1;

    public static final int WORK_THREAD = 2;

    public static final boolean KEEP_ALIVE = true;

    public static final int BACK_LOG = 1024;

    public static final boolean NODE_LAY = true;

    public static final boolean REUSE_ADDR = true;

    public static final int SND_BUF = 10485760;

    public static final int REV_BUF = 10485760;

    public static final int HEART = 180;

    public static final int PERIOD = 10;

    public static final String SERVER_NAME = "iot-netty-chat";

    public static final int INITIAL_DELAY = 10;

    public static final int MAX_CONTENT = 65536;

    public static final String WEB_SOCKET_PATH = "/ws";

    /**
     * 是否启动加密
     */
    public static final boolean SSL = false;

    public static final String JKS_FILE = "im.jks";

    public static final String JKS_STORE_PASSWORD = "123456";

    public static final String JKS_CERTIFICATE_PASSWORD = "123456";

}
